<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TemplateEdit.aspx.cs" Inherits="admin_Templates_TemplateEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改系统模板管理</title>
<link rel="stylesheet" href="../skin/style.css" type="text/css" />
    <script type="text/javascript" src="../js/CheckedAll.js"></script>

    <script type="text/javascript">
    function Show(tag){   
        if (tag==0) {
            document.getElementById('sy').style.display="block";
            document.getElementById('us').style.display="none";
	      
        } 
        else if (tag==1) { 
            document.getElementById('sy').style.display="none";
	        document.getElementById('us').style.display="block";
        } 
    }  
    </script>

    <style type="text/css">
        #Template{
	    float:left; width: 660px; height: 100px; border: 1px #003399 solid;
        }
    </style>
</head>
<body>
<form id="form1" runat="server">
<div class="talbe_border marie">
<table border="0" cellpadding="0" cellspacing="0" class="talbe_list">
<tr>
		 <th colspan="2" class="header tou">修改系统模板</th>
		</tr>
	<tr>
		<td width="12%">
			模板名称：</td>
		<td class="left2">
		  <asp:TextBox ID="Title" runat="server" Width="300px"></asp:TextBox></td>
	</tr>
	<tr>
		<td style="width: 100px; height: 371px;">模板代码：		</td>
		<td valign="top"><div style=" float:left; width:100%; margin-left:0px;">
		 <div style=" float:left; width: 75%; margin-left: 2px;">
		   <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Width="100%" Height="360px"></asp:TextBox>
		 </div>
		 <div style=" float:right; width:155px; overflow:hidden">
		 <div id="label_main">
		<ul>
			<li id="a0" onmouseover="Show(0)"><a href="#" class="labg">系统标签</a></li>
			<li style="float:right" id="b0" onmouseover="Show(1)"><a href="#" class="labg">自定标签</a></li>
		</ul>
	</div>
	<div id="sy" style="display: block; border: 1px #C4DBFF solid; height:327px; padding:4px;">
		<asp:DropDownList ID="dropSystemLable" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropSystemLable_SelectedIndexChanged" Width="140px">		</asp:DropDownList>
		<select id="lstSystemLable" runat="server" ondblclick="insertColum(this.value)" size="10" style="width:145px; height:300px; margin-top:5px">
			<option selected="selected"></option>
		</select>
	</div>
	<div id="us" style="display: none; border: 1px #C4DBFF solid; height:327px; padding:4px;">
		<asp:DropDownList ID="dropUserLable" runat="server" AutoPostBack="true" OnSelectedIndexChanged="dropUserLable_SelectedIndexChanged" Width="140px">		</asp:DropDownList>
		<select id="lstUserLable" runat="server" onchange="insertColum(this.value)" size="10" style="width:145px; height:300px; margin-top:5px">
			<option selected="selected"></option>
		</select>
	</div>
		 </div>
		</div>
		</td>
	</tr>
	<tr>
		<td colspan="2" style="height: 21px" bgcolor="#F0F7FD">
			<asp:Button ID="btnSave" runat="server" Text="保存修改" CssClass="i_button" OnClick="btnSave_Click" /></td>
	</tr>
</table>
</div>
</form>
</body>
</html>
